package com.itrip.biz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itrip.beans.pojo.HotelOrder;
import com.itrip.beans.pojo.T;
import com.itrip.beans.pojo.UserLinkUser;
import com.itrip.beans.vo.OrderInfoVo;
import com.itrip.beans.vo.PageVo;
import com.itrip.beans.vo.PersonalOrderRoomVO;
import org.apache.catalina.servlet4preview.http.HttpServletRequest;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


public interface HotelOrderService extends IService<HotelOrder> {
    PageVo getOrderInfo(T orderS, HttpServletRequest request);

    OrderInfoVo getOrderInfoDetails(int id);
    /**
     * 根据订单的预定天数和房间的单价计算订单总金额 -add by donghai
     * @param count ,roomId count为天数和房间数量的乘积
     * @return
     * @throws Exception
     */
    public BigDecimal getOrderPayAmount(int count, Long roomId) throws Exception;
    public Map<String, String> itriptxAddItripHotelOrder(HotelOrder itripHotelOrder, List<UserLinkUser> linkUserList)throws Exception;
    /**
     * 通过订单id查看订单详情-具体房型信息等- add by hanlu
     * @param orderId
     * @return
     * @throws Exception
     */
    public PersonalOrderRoomVO getItripHotelOrderRoomInfoById(Long orderId)throws Exception;

    public boolean flushOrderStatus(Integer type)throws Exception;

}
